<?php

require_once('/etc/acb/config.php');
require_once(ROOT . 'controlador/libs/pdf/PDF.class.php');
require_once(ROOT."visualizador/SmartyProjeto.class.php");

class Contrato {
    private $usuario;
    private $senha;

    public function Contrato(){
        $this->usuario = 'ckjdsfjds';
        $this->senha = 'teste';
    }

    public function getUsuario(){
        return $this->usuario;
    }

    public function getSenha(){
        return $this->senha;
    }
}

$stylesheet = '
body{
    text-align: justify;
    font-family: Verdana;
    font-size: 8.5pt;
}
h1{
    text-align: center;
    font-size: 11pt;
}
h2{
    text-align: left;
    font-size: 9pt;
    margin-bottom: 2px;
}
p{
    margin-top: 2px;
    margin-bottom: 2px;
    padding-top: 2px;
}
';

 $smarty = new SmartyProjeto(false);
 $contrato = new Contrato();


$smarty->assign('contrato', $contrato);


$mpdf = new PDF();

$html = $smarty->fetch('MatricularAluno/contrato.tpl');

$mpdf->WriteHTML($stylesheet,1);
$mpdf->WriteHTML($html);

$mpdf->Output('contrato.pdf', 'D');
?>
